import 'package:boss/ui/page/staffTip/provider/staff_tip_provider.dart';
import 'package:boss/ui/page/staffTip/widget/staff_tip_browser.dart';
import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:provider/provider.dart';
import 'package:router/annotation.dart';

@RouterConfig(StaffTipPage.pageName)
class StaffTipPage extends StatefulWidget {
  static const pageName = '/staffTipPage';

  @override
  _StaffTipPageState createState() => _StaffTipPageState('员工小费');
}

class _StaffTipPageState extends BaseState<StaffTipPage> {
  _StaffTipPageState(String pageName) : super(pageName);

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        ChangeNotifierProvider(
          create: (context) => StaffTipProvider(),
        ),
      ],
      child: Scaffold(
        appBar: CenterTitleAppBar(
          title: '员工小费',
        ),
        body: StaffTipBrowser(),
      ),
    );
  }
}
